<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
    <base href="<%=basePath%>">
    <title>${sessionScope.topicName} - 舆情信息系统 - 时间轴</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <%@include file="../im.jsp" %>
        <script type="text/javascript" src="js/storyjs-embed.js"></script>
        <script>
            var sourceData =${data};
            $(document).ready(function () {
                createStoryJS({
                    type: 'timeline',
                    width: '100%',
                    height: '800',
                    source: sourceData,
                    embed_id: 'timeline',
                    debug: true,
                    lang: "zh-cn"
                });
            });
        </script>
        <style type="text/css">
            #timeline {
                height: 850px;
                width: 100%;
                border-right: 2px solid #bcbcbc;
                padding: 10px;
            }
        </style>

</head>
<body>
<logic:equal name="user" value="administrator">
    <div class="container">
        <%@include file="../top.jsp" %>
        <div class="row">

            <%@include file="../left.jsp" %>

            <div class="col-md-10">
                <div id="timeline"></div>
            </div>
        </div>
    </div>
</logic:equal>
<logic:empty name="user">
    Access Rejected! Error 404
</logic:empty>
</body>
</html>